<template>
  <div>
    <!-- logo导航模块 -->
    <div class="banner">
      <a href=""
        ><div class="logo"><img src="/images/logo.png" alt="" /></div
      ></a>
      <div class="nav">
        <ul class="nav_box">
          <li><a href="">小米手机</a></li>
          <li><a href="">Redmi红米</a></li>
          <li><a href="">电视</a></li>
          <li><a href="">笔记本</a></li>
          <li><a href="">平板</a></li>
          <li><a href="">家电</a></li>
          <li><a href="">路由器</a></li>
          <li><a href="">智能硬件</a></li>
          <li><a href="">服务</a></li>
          <li><a href="">社区</a></li>
        </ul>
      </div>

      <div class="nav_pop">
        <div class="contain">
          <ul>
            <li>
              <a>
                <div class="product-img">
                  <img src="/images/xiaomix4.webp" alt="" />
                </div>
                <div>mix</div>
                <div class="product-text">4399元</div>
              </a>
            </li>
            <li>
              <a>
                <div class="product-img">
                  <img src="/images/xiaomix4.webp" alt="" />
                </div>
                <div>mix</div>
                <div class="product-text">4399元</div>
              </a>
            </li>
            <li>
              <a>
                <div class="product-img">
                  <img src="/images/xiaomix4.webp" alt="" />
                </div>
                <div>mix</div>
                <div class="product-text">4399元</div>
              </a>
            </li>
            <li>
              <a>
                <div class="product-img">
                  <img src="/images/xiaomix4.webp" alt="" />
                </div>
                <div>mix</div>
                <div class="product-text">4399元</div>
              </a>
            </li>
            <li>
              <a>
                <div class="product-img">
                  <img src="/images/xiaomix4.webp" alt="" />
                </div>
                <div>mix</div>
                <div class="product-text">4399元</div>
              </a>
            </li>
          </ul>
        </div>
      </div>
      <div class="search">
        <div class="text">
          <input type="text" class="shuru" placeholder="小米11" />
        </div>
        <div class="submit">
          <input type="submit" class="sousuo" value="搜索" />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { getGoods } from "../assets/js/request.js";
export default {};
</script>

<style lang="scss">
.banner {
  min-width: 1232px;
  height: 100px;
  padding-top: 10px;
  margin: 0 auto;
  margin-bottom: 20px;
  position: relative;
  .logo {
    position: absolute;
    left: 10%;
    float: left;
    margin: 20px 0;
  }
  .logo img {
    width: 60px;
    height: 60px;
  }
  .nav {
    width: 60%;
    height: 100px;
    display: flex;
    position: absolute;
    left: 20%;
    .nav_box li {
      float: left;
      height: 100px;
      line-height: 100px;
    }
    .nav_box li a {
      display: inline-block;
      color: #000;
      font-size: 16px;
      padding: 0 10px;
    }
    .nav_box li a:hover {
      color: rgb(255, 103, 0);
    }
  }

  .search {
    display: flex;
    width: 30%;
    height: 80px;
    line-height: 100px;
    float: right;
    position: absolute;
    right: 0%;
    .text {
      width: 250px;
      height: 50px;
      line-height: 50px;
      font-size: 12px;
      margin-top: 25px;
      border: 1px solid #ccc;
      float: left;
    }
    .text:hover {
      border-color: #ff6700;
    }
    .text .shuru {
      border: none;
      width: 250px;
      height: 30px;
      padding-left: 10px;
    }
    .submit {
      float: left;
      width: 50px;
      height: 50px;
      line-height: 50px;
      text-align: center;
      font-size: 12px;
      margin-top: 25px;
      border: 1px solid #ccc;
    }
    .submit .sousuo {
      letter-spacing: 3px;
      text-align: center;
      width: 50px;
      height: 50px;
      border: none;
      background: none;
      cursor: pointer;
    }
    .submit:hover {
      border-color: #ff6700;
      color: #ff6700;
    }
    .submit:focus {
      border-color: #ff6700;
      color: #ff6700;
    }
  }
}
.nav_pop {
  position: absolute;
  top: 120px;
  width: 100%;
  height: 230px;
  border-top: 1px solid #e0e0e0;
  background: #fff;
  z-index: 3;
  padding-top: 20px;
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.18);
  display: none;
  ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  ul li {
    width: 300px;
    height: 180px;
    float: left;
    border-right: 1px solid #666;
  }
  .v-enter-active,
  .v-leave-active {
    transition: all 0.3s ease;
    height: 230px;
  }
  .v-enter,
  .v-leave-to {
    height: 0;
  }
  .product-item {
    position: relative;
    display: inline-block;
    padding: 35px 12px 0 12px;
    text-align: center;
    font-size: 12px;
  }
  .product-img img {
    width: 130px;
    height: 110px;
    margin-bottom: 16px;
  }
  .product-text {
    color: #ff6700;
  }
}
</style>